package com.yishan.dao;

import com.yishan.domain.User;
import com.yishan.domain.User;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @Author yishan
 * @Date 2021/4/5 0005 12:57
 * @Version 1.0
 */
public interface UserDao {


	int save(User user);

	int delete(String id);

	int update(User user);

	User findById(String id);

	List<User> findAll();

	void deleteRole(String userId);

	void updateRole(@Param("userId") String userId,@Param("roleId") String roleId);

	User findByEmailAndPwd(@Param("email") String email, @Param("zd_pwd") String zd_pwd);
}
